package com.liang.rabbitmqspringbootconsumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"duanxin.direct.queue"})
public class DirectDaunxinConsumer {

    @RabbitHandler
    public void reviceMessage(String message){
        System.out.println("duanxin.direct.queue==接收到的订单信息是"+message);
    }

}
